package chapter8.java;

import java.util.ArrayList;
import java.util.Random;

/**
 * @Author juzipi
 * @Date 2021/5/21 9:27
 * @Info
 */
public class HeapInstanceTest {

    byte[] buffer = new byte[new Random().nextInt(1024*200)];

    public static void main(String[] args) {
        ArrayList<Object> list = new ArrayList<>();
        while (true){
            list.add(new HeapInstanceTest());
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

}
